import { IsNotEmpty } from "class-validator";

export class CreatePeerCarDto {
  @IsNotEmpty({message: '车源名称不能为空'})
  carName: string

  @IsNotEmpty({message: '品牌不能为空'})
  brand: string

  @IsNotEmpty({message: '指导价不能为空'})
  price: number

  frameNumber?: string

  safeCount?: number

  mileage?: number

  registrationDate?: string

  homeLocation?: string

  emissionStandard?: string

  energy?: number

  insuranceDate?: string

  gearbox?: string

  annualInspection?: string

  location?: string

  usingNature?: number

  phone: string

  description?: string
  
  userId: string
}